package com.woniuxy.elasticsearchdemo.repository;

import com.woniuxy.elasticsearchdemo.esvo.EsBook;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface EsBookRepository extends ElasticsearchRepository<EsBook,Long> {
    List<EsBook> findEsBookByName(String name);
    List<EsBook> findEsBookByNameOrAuthor(String name ,String author);
}
